package com.demo.commons.constant;
/**
 *@author zwy
 *@date 2023/8/9 19:49
*/
public class ConStantsR {
    /**
     * 账号类型(1超级管理员 2普通管理员)
     */
    public static final String SUPER_ADMIN = "1";
    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 5;

    /**
     * 资源映射路径 前缀 上传
     */
    public static final String RESOURCE_UPLOAD = "/bitapeFiles/upload/api";
//    public static final String RESOURCE_UPLOAD = "/Users/LUO/Desktop/img/shang";
//    public static final String RESOURCE_UPLOAD = "/demo/aha/bitapeFiles/download";

    /**
     * 资源映射路径 前缀 下载
     */
    public static final String RESOURCE_DOWNLOAD = "/bitapeFiles/download";
//    public static final String RESOURCE_DOWNLOAD = "/Users/LUO/Desktop/img/xia";
//    public static final String RESOURCE_DOWNLOAD = "/demo/aha/bitapeFiles/download";

    /**
     * 请求headers携带参数
     */
    public static final String USER_TOKEN = "userToken";
    public static final String USER_TYPE = "userType";

    /**
     * token中的key
     */
    public static final String TOKEN_UUID = "uuid";
    public static final String TOKEN_EXPIRE_TIME = "expireTime";

    /**
     * 登录用户id
     */
    public static final String TOKEN_USERID = "userId";

    /**
     * 分页 页码
     */
    public static final String PAGE = "page";
    /**
     * 分页 每页条数
     */
    public static final String LIMIT = "limit";
    /**
     * 分页 序号排序 desc降序 asc升序
     */
    public static final String ORDER = "order";
    /**
     * 分页 序号 从1开始
     */
    public static final String IID = "iid";

    /**
     * 状态码
     */
    public static final String CODE = "code";
    /**
     * 返回内容
     */
    public static final String MESSAGE = "msg";
    /**
     * 数据对象
     */
    public static final String DATA = "data";

    /**
     * 成功后的提示内容
     */
    public static final String SUCCESS = "success";

    /**
     * 服务器失败/服务连接异常
     */
    public static final String ERROR = "error";

    /**
     * 服务器失败/服务连接异常
     */
    public static final String MESSAGE_SERVICE_ERROR = "服务异常,请稍后再试";

    /**
     * 授权过期 登录过期
     */
    public static final String MESSAGE_LOGOUT = "登录过期";

    /**
     * 登入失败 重新登入              登入失败
     */
    public static final String LoginFailed = "账号有误或者密码错误";


    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";







    //Api常量------------------------------------------------------------------------------------------------------------
    /**
     * 生成二维码所存放的路径
     */
    public static final String QR_CODE_PATH = RESOURCE_UPLOAD;
    /**
     * 邀请链接
     * 对哪个页面生成二维码？
     */
    public static final String HTML_PATH = "https://www.jianshu.com/p/a046ff84226e";
}
